package com.texplose.service;

import com.texplose.entity.vo.*;

import java.util.List;

/**
 * @author : lyj
 * @Timer : 2022/5/18
 * @Description :
 */
public interface RecipeService {
    List<IndexCardsVo> getIndexCards();

    List<IndexCardsVo> getIndexCardsByCreate();

    List<IndexCardsVo> getIndexCardsByLikes();

    ResponseResult getSwiper();

    ResponseResult getWorksByUserId(int userId);

    ResponseResult getRecipeListByCategoryId(Integer id);

    List<UserCollectionVo> getCollectionsByUserId(Integer id);

    void deleteRecipeById(Integer id);

    RecipeDetailVo getRecipeDetailById(Integer id);

    List<IndexCardsVo> searchRecipeByTitle(String title);

    ResponseResult updateView(Integer id);

    void updateViewById(int id, int views);

    ResponseResult addRecipe(AddRecipeVo addRecipeVo);

    Integer countByUserId(Integer id);
}
